<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <ob_link><a class="btn" href="{:url('regionAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
        </div>
        
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="编码|名称">
                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('region_list')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
		  <th>编码</th>
		  <th>标题</th>
          <th>市区编码</th>
          <th>市区标题</th>
          <th>省市编码</th>
          <th>省市标题</th>
          <th>级别</th>
          <th class="status-th">状态</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
				  <td>{$vo.code}</td>
                  <td>{$vo.name}</td>
                  <td>{$vo.city_code}</td>
                  <td>{$vo.city_name}</td>
                  <td>{$vo.province_code}</td>
                  <td>{$vo.province_name}</td>
				  <td>{$vo.level}</td>
				  <td>
                      <ob_link>{$vo.status_text}</ob_link>
                  </td>
                  <td class="col-md-3 text-left">
                      <ob_link><a href="{:url('regionAdd', array('code' => $vo['code']))}" class="btn"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>
<div class="box-footer">
	<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
</div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        window.location.href = searchFormUrl($(".export"));
    });
	function bfqx(id){
		layer.confirm('请您选择拨付类型！', {
		  btn: ['简历查看','发布职位'] //按钮
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(val, index){
				if(isNaN(val)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{resumeNum:val,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
		}, function(){
			layer.prompt({title: '输入拨付次数', formType: 4},function(vals, index){
				if(isNaN(vals)){
					layer.msg("请输入正确的数字");
					return false;
				}
			    $.post("{:url('editNum')}",{workNum:vals,user_id:id},function(data){
					if(data.code == 0){
						layer.msg(data.msg);
						location.reload();
					}else{
						layer.msg(data.msg);
					}
				},'json');
			});
	    });
	}
</script>